import Vue from 'vue'
import Router from 'vue-router'
import users from "@/router/modules/users";
import items from "@/router/modules/items";
import manager from "@/router/modules/manager";//使用绝对路径

Vue.use(Router)
export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'welcome',
            component: resolve => require.ensure([], () => resolve(require('@/views/index')), 'index')
        },
        ...users,
        ...items,
        ...manager
    ]
})